//
//  AboutMeController.swift
//  CreateMyCode
//
//  Created by zhibao on 2024/2/12.
//

import UIKit
class AboutMeController: SecSuperController{
    override func viewDidLoad() {
        super.viewDidLoad()
        self.gk_navTitle = LocalizedString("关于我们")
        self.gk_navTitleColor = UIColor.white
        
        let imgView = UIImageView(frame: CGRect(x: 50, y: 144 -  64 + navigationFullHeight(), width: 60, height: 60))
        imgView.image = UIImage(named: "com_icon")
        imgView.layer.cornerRadius = 4
        imgView.clipsToBounds = true
        self.view.addSubview(imgView)
        
        let nameLabel = UILabel()
        nameLabel.text = LocalizedString("二维码师傅")
        nameLabel.font = MY_SCALE_SemiboldFONT(23)
        nameLabel.numberOfLines = 0
        nameLabel.lineBreakMode = .byWordWrapping
        nameLabel.textColor = MYBlock
        self.view.addSubview(nameLabel)
        nameLabel.snp.makeConstraints { make in
            make.left.equalTo(imgView)
            make.right.equalTo(-50)
            make.top.equalTo(imgView.snp.bottom).offset(16)
        }
        
        let verLabel = UILabel()
        let infoDic = Bundle.main.infoDictionary
        let appVerSion = infoDic!["CFBundleShortVersionString"] as! String
        verLabel.text = appVerSion
        verLabel.font = MY_SCALE_RegularFONT(13)
        verLabel.textColor = MYColor.color(withHexString: "333333")
        self.view.addSubview(verLabel)
        verLabel.snp.makeConstraints { make in
            make.left.right.equalTo(nameLabel)
            make.top.equalTo(nameLabel.snp.bottom).offset(4)
        }
        
        let detailLabel = UILabel()
        detailLabel.text = LocalizedString("我们将在二维码的领域一直深耕下去，感谢您的理解与支持，如有问题请去我的->联系我们，添加微信客服。")
        detailLabel.font = MY_SCALE_RegularFONT(15)
        detailLabel.numberOfLines = 0
        detailLabel.lineBreakMode = .byWordWrapping
        detailLabel.textColor = MYColor.color(withHexString: "666666")
        self.view.addSubview(detailLabel)
        detailLabel.snp.makeConstraints { make in
            make.left.equalTo(imgView)
            make.right.equalTo(-50)
            make.top.equalTo(verLabel.snp.bottom).offset(35)
        }
    }
}
